package cn.chencaiju.day02;

import cn.chencaiju.day01.Day01Task;

public class FlowControllerTest1 {

	public static void main(String[] args) {
		int year=Integer.parseInt(args[0]);
		int month=Integer.parseInt(args[1]);
		if(Day01Task.test6(year)) {
			switch(month) {
			case 2:
				System.out.println("有"+29+"天");
				break;
			case 4:case 6:case 9:case 11:
				System.out.println("有"+30+"天");
				break;
			default:
				System.out.println("有"+31+"天");
			}
		}else {
			switch(month) {
			case 2:
				System.out.println("有"+28+"天");
				break;
			case 4:case 6:case 9:case 11:
				System.out.println("有"+30+"天");
				break;
			default:
				System.out.println("有"+31+"天");
			}			
		}
	}

}
